import Layout from '@/layouts/index.vue';
import LogoutIcon from '@/assets/assets-slide-logout.svg';

export default [
  // 主页路由
  {
    path: '/index-resources',
    name: 'index-resources',
    component: Layout,
    redirect: '/user/index',
    meta: { title: '首页资源', icon: 'home' },
    children: [
      {
        path: 'banerlist',
        name: 'banerlist',
        component: () => import('@/view/index-resources/banner-list.vue'),
        meta: { title: '轮播图列表' },
      },
      {
        path: 'baneradd',
        name: 'baneradd',
        component: () => import('@/view/index-resources/banner-add.vue'),
        meta: { title: '添加轮播图' },
      },
        {
          path: 'mytest',
          name: 'mytest',
          component: () => import('@/view/test.vue'),
          meta: { title: '测试用例' },
        },
    ],
  },
  // 店铺路由
  {
    path: '/shore',
    name: 'shore',
    component: Layout,
    redirect: '/user/index',
    meta: { title: '店铺管理', icon: 'shop' },
    children: [
      {
        path: 'shorelist',
        name: 'shorelist',
        component: () => import('@/view/store/store.vue'),
        meta: { title: '店铺列表' },
      },
      {
        path: 'shoreAdd',
        name: 'shoreAdd',
        component: () => import('@/view/store/shoreAdd.vue'),
        meta: { title: '添加店铺' },
      },
      {
        path: 'shoreDetail',
        name: 'shoreDetail',
        component: () => import('@/view/store/storeDetail.vue'),
        meta: { title: '店铺详情',hidden:true },
      },
    ],
  },
  // 商品路由
  {
    path: '/food',
    name: 'food',
    component: Layout,
    redirect: '/user/index',
    meta: { title: '商品管理', icon: 'scan' },
    children: [
      {
        path: 'foodlist',
        name: 'foodlist',
        component: () => import('@/view/food/food-list.vue'),
        meta: { title: '商品列表' },
      },
      {
        path: 'foodlabellist',
        name: 'foodlabellist',
        component: () => import('@/view/food/food-label.vue'),
        meta: { title: '标签列表' },
      },
      {
        path: 'foodQuan',
        name: 'foodQuan',
        component: () => import('@/view/food/food-quan.vue'),
        meta: { title: '优惠券列表' },
      },
    ],
  },
  // 用户管理
  {
    path: '/User',
    name: 'User',
    component: Layout,
    redirect: '/user/index',
    meta: { title: '用户管理', icon: 'user-avatar' },
    children: [
      {
        path: 'userlist',
        name: 'userlist',
        component: () => import('@/view/user/user-list.vue'),
        meta: { title: '用户列表' },
      },
      {
        path: 'order',
        name: 'order',
        component: () => import('@/view/user/user-order.vue'),
        meta: { title: '用户订单列表' },
      },
    ],
  },
];
